home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 2
/
NetNews Offline Volume 2.iso
/
news
/
comp
/
lang
/
c-part2
/
15193
/
PRINTIT.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-08-05
|
347 b
|
31 lines
/* Filename: printit.cpp Written by A. Kennedy */
// Send output directly to printer
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
FILE *prnt;
void main()
{
prnt = fopen("PRN", "w"); /* LTP1 would also work */
fprintf(prnt, " This output was sent to the printer.");
fclose(prnt);
}